import request from '@/common/requestV2'

//查询会员卡运输单
export function getPage(data) {
  return request({
    url: '/admin/collectionOrder/getPage',
    method: 'post',
    data: data
  })
}

export function uploadExcel(data) {
  return request({
    url: '/admin/collectionOrder/uploadExcel',
    method: 'post',
    data: data
  })
}

export function getOrderById(id) {
  return request({
    url: '/admin/collectionOrder/'+id,
    method: 'get',
  })
}

export function getItemPage(data) {
  return request({
    url: '/admin/collectionOrderItem/getPage',
    method: 'post',
    data: data
  })
}

export function saveItem(data) {
  return request({
    url: '/admin/collectionOrderItem/saveItem',
    method: 'post',
    data: data
  })
}

export function updateOrder(data) {
  return request({
    url: '/admin/collectionOrder/updateOrder',
    method: 'post',
    data: data
  })
}

export function deleteItem(id) {
  return request({
    url: '/admin/collectionOrderItem/deleteItem/'+id,
    method: 'put',
  })
}

export function countPageAmount(data) {
  return request({
    url: '/admin/collectionOrder/countPageAmount',
    method: 'post',
    data: data
  })
}

export function getLogPage(data) {
  return request({
    url: '/admin/collectionLog/getPage',
    method: 'post',
    data: data
  })
}
